/**
  @file     	DESIGNPATTERN_Adapter.cpp 
  @brief    	1.When the algorithm to create complex object should be independent of the part of the object, 
                  as well as their assembly;
				2.When construction process must be allowed to construct the object is different;
  @author  	arvin
  @version 	1.0   2012/12/20
 */

#include "stdafx.h"

#ifndef CXX_DESIGNPATTERN_ADAPTER_H
#include "DESIGNPATTERN_Adapter.h"
#endif

#ifndef CXX_DESIGNPATTERN_ADAPTEEJAPAN_H
#include "DESIGNPATTERN_AdapteeJapan.h"
#endif

 /**
 * Construction
 *
 * @param AdapteeJapan* pAdapteeJapan
 * @return
 */
Adapter::Adapter(AdapteeJapan* pAdapteeJapan) :
	m_pAdapteeJapan(pAdapteeJapan)
{
	DEBUG_PRINTF("");
}

/**
* Destruction
*
* @param VOID
* @return
*/
Adapter::~Adapter()
{
	DEBUG_PRINTF("");
}

/**
* Voltage220V
*
* @param VOID
* @return VOID
*/
VOID Adapter::Voltage220V()
{
	DEBUG_PRINTF("");
	if (NULL != m_pAdapteeJapan) {
		m_pAdapteeJapan->Voltage110V();
	}
}
/* EOF */